package com.starhub.api.docwriting.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**   
 * 写作历史版本表
 * @version: V1.0
 * @author: H.
 * @time 2025-06-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("writing_version")
public class WritingVersion {
    
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private Long userId;

    private Long writingId;

    private LocalDateTime createTime;
    
    private String title;
    
    private String content;
    
    private String writingType;
    
    private String keywords;
    
    private String remark;
    
    @TableLogic
    private Integer deleteType;
} 